package com.paipai.client;

import java.util.List;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.paipai.entity.Product;

@FeignClient("moon-paipai-product")
public interface ProductClient {
	
	
	/**
	 * 查询商品信息
	 * @param pid
	 * @return
	 */
	@ResponseBody
	@RequestMapping("/particulars")
	Product finProductById(@RequestParam("id") Integer id);
	
	
	/**
	 * 将storage转移到redis
	 * @param proids
	 * @return
	 */
	@ResponseBody
	@RequestMapping("/finProductListByIds")
	List<Product> finProductListByIds(@RequestParam("proids") String proids);
	
	

}
